#include <hidef.h>      /* common defines and macros */
#include <mc9s12dp256.h>     /* derivative information */


#pragma LINK_INFO DERIVATIVE "mc9s12dp256b"

void main(void) {
  /* put your own code here */
  EnableInterrupts;
  DDRB=0xFF;
  for(;;) {
    //PORTB ^=0xFF;
    int i;
    PORTB =0xFF;
    for(i=0;i<10000;i++);
    PORTB =0xFE;
    for(i=0;i<10000;i++);
    PORTB =0xFD;
    for(i=0;i<10000;i++);
    PORTB =0xFB;
    for(i=0;i<10000;i++);
    PORTB =0xF7;
    for(i=0;i<10000;i++);
    PORTB =0xEF;
    for(i=0;i<10000;i++);
    PORTB =0xDF;
    for(i=0;i<10000;i++);
    PORTB =0xBF;
    for(i=0;i<10000;i++);
    PORTB =0x7F;
    for(i=0;i<10000;i++);
    PORTB =0xFF;
    for(i=0;i<20000;i++);
    PORTB =0x7F;
    for(i=0;i<20000;i++);
    PORTB =0xBF;
    for(i=0;i<20000;i++);
    PORTB =0xDF;
    for(i=0;i<20000;i++);
    PORTB =0xEF;
    for(i=0;i<20000;i++);
    PORTB =0xF7;
    for(i=0;i<20000;i++);
    PORTB =0xFB;
    for(i=0;i<20000;i++);
    PORTB =0xFD;
    for(i=0;i<20000;i++);
    PORTB =0xFE;
    for(i=0;i<60000;i++);
  } /* wait forever */
}
